package com.qijia.common.domain;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * CommonUsers entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "common_users", catalog = "qijia")
public class Users extends AbstractCommonUsers{
	
	//此角色名为前台客户角色，前台的权限配置文件spring-security.xml中就有此角色名
	public static final String	CUSTOMER_ROLE		= "customer";
	public static final String	UNGRANTED_ROLE		= "UNGRANTED_ROLE";
	
	public static final Integer	CONST_DELETED		= 0;
	// lock status
	public static final Integer	CONST_LOCKED		= 0;

	// deleted status
	public static final Integer	CONST_UNDELETED		= 1;
	public static final Integer	CONST_UNLOCKED		= 1;
	
	// user type
	public static final Integer	USER_TYPE_CUSTOMER	= 0;
	public static final Integer	USER_TYPE_ADMIN		= 1;

	// Constructors

	/**
	 * 
	 */
	private static final long serialVersionUID = 3581616157399727391L;

	/** default constructor */
	public Users() {
	}

	/** full constructor */
	public Users(Integer enable, String password, String username,
			Set<UserRole> userRoles) {
		super(enable, password, username, userRoles);
	}
}
